<h1>Listing newsletters</h1>
<p>
  <%= link_to 'New newsletter', new_newsletter_path %>
</p>
<table class="internal">
  <tr>
    <th>Subject</th>
    <th>Content</th>
    <th>Draft</th>
  </tr>

<% for newsletter in @newsletters %>
  <tr class="<%= cycle 'odd', 'even' %>">
    <td><%=h newsletter.subject %></td>
    <td><%=h newsletter.content %></td>
    <td><%=h newsletter.draft %></td>
    <td><%= link_to 'Show', newsletter %></td>
    <td><%= link_to 'Edit', edit_newsletter_path(newsletter) %></td>
    <td><%= link_to 'Delete', newsletter, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>
